package com.joshondesign.sdljava.events;

public class Keyboard {

    
public static enum Modifier {
    Shift, Command, Control, Alt
}

public static enum Keycode {
    ////Foo('s'),
    //Numberx('s'),
    Number_0('0'),
    Number_1('1'),
    Number_2('2'),
    Number_3('3'),
    Number_4('4'),
    Number_5('5'),
    Number_6('6'),
    Number_7('7'),
    Number_8('8'),
    Number_9('9'),
    A('a'),
    B('b'),
    C('c'),
    D('d'),
    E('e'),
    F('f'),
    G('g'),
    H('h'),
    I('i'),
    J('j'),
    K('k'),
    L('l'),
    M('m'),
    N('n'),
    O('o'),
    P('p'),
    Q('q'),
    R('r'),
    S('s'),
    T('t'),
    U('u'),
    V('v'),
    W('w'),
    X('x'),
    Y('y'),
    Z('z'),
    Backspace(),
    Left(),
    Right(),
    Spacebar(' '),

    ;
    private boolean text;
    private char ch;

    Keycode(char ch) {
        this.ch = ch;
        text = true;
    }
    Keycode() {
        text = false;
    }

    public boolean isText() {
        return text;
    }

    public String getText() {
        return ""+this.ch;
    }
}

}


